package com.proxy;

public class ProxyImage implements Image {
	
	private RealImage readImage;
	private String fileName;
	
	public ProxyImage(String fileName) {
		super();
		this.fileName = fileName;
	}



	@Override
	public void display() {
		if (readImage == null) {
			readImage = new RealImage(fileName);
		}
		readImage.display();
	}

}
